import { axios } from '@/utils/request'

/**
 * 查询房间租约
 *
 * @author anti
 * @date 2021-05-06 09:30:21
 */
export function houseLeasePage (parameter) {
  return axios({
    url: '/houseLease/page',
    method: 'get',
    params: parameter
  })
}

export function getTjSys (parameter) {
  return axios({
    url: '/houseLease/getTjSys',
    method: 'get',
    params: parameter
  })
}

/**
 * 房间租约列表
 *
 * @author anti
 * @date 2021-05-06 09:30:21
 */
export function houseLeaseList (parameter) {
  return axios({
    url: '/houseLease/list',
    method: 'get',
    params: parameter
  })
}

/**
 * 房间租约列表
 *
 * @author anti
 * @date 2021-05-06 09:30:21
 */
 export function houseLeasedetail (parameter) {
  return axios({
    url: '/houseLease/detail',
    method: 'get',
    params: parameter
  })
}

/**
 * 添加房间租约
 *
 * @author anti
 * @date 2021-05-06 09:30:21
 */
export function houseLeaseAdd (parameter) {
  return axios({
    url: '/houseLease/add',
    method: 'post',
    data: parameter
  })
}

/**
 * 编辑房间租约
 *
 * @author anti
 * @date 2021-05-06 09:30:21
 */
export function houseLeaseEdit (parameter) {
  return axios({
    url: '/houseLease/edit',
    method: 'post',
    data: parameter
  })
}
export function houseLeaseZkEdit (parameter) {
  return axios({
    url: '/houseLease/editZk',
    method: 'post',
    data: parameter
  })
}

export function houseLeaseJsEdit (parameter) {
  return axios({
    url: '/houseLease/editJs',
    method: 'post',
    data: parameter
  })
}

export function houseLeaseFyEdit (parameter) {
  return axios({
    url: '/houseLease/editFy',
    method: 'post',
    data: parameter
  })
}

export function houseLeaseTuiZu (parameter) {
  return axios({
    url: '/houseLease/editTuiZu',
    method: 'post',
    data: parameter
  })
}

export function houseLeaseXuzu (parameter) {
  return axios({
    url: '/houseLease/editXuzu',
    method: 'post',
    data: parameter
  })
}

/**
 * 删除房间租约
 *
 * @author anti
 * @date 2021-05-06 09:30:21
 */
export function houseLeaseDelete (parameter) {
  return axios({
    url: '/houseLease/delete',
    method: 'post',
    data: parameter
  })
}

/**
 * 查看在租房间租约具体信息
 *
 * @author anti
 * @date 2021-05-06 09:30:21
 */
 export function getIsLeaseMsgPrint (parameter) {
  return axios({
    url: '/houseLease/getIsLeaseMsgForPrint/' + parameter,
    method: 'get'
  })
}

export function getTzrByLeaseId (parameter) {
  return axios({
    url: '/houseLeaseLive/getTzrListByLeaseId/' + parameter,
    method: 'get'
  })
}

export function getAdjustmentListByLeaseId (parameter) {
  return axios({
    url: '/billRentAdjustment/getAdjustmentListByLeaseId/' + parameter,
    method: 'get'
  })
}

export function addAdjustmentList (parameter) {
  return axios({
    url: '/billRentAdjustment/add',
    method: 'post',
    data: parameter
  })
}

export function delAdjustById (parameter) {
  return axios({
    url: '/billRentAdjustment/delAdjustById/' + parameter,
    method: 'get'
  })
}

export function exportExcel (parameter) {
  return axios({
    url: '/houseLease/exportExcel',
    method: 'post',
    data: parameter,
    responseType: 'blob'
  })
}

export function addAdjustdeposit (parameter) {
  return axios({
    url: '/billdepositadjustment/add',
    method: 'post',
    data: parameter
  })
}

export function getLeaseFurnitureListById (parameter) {
  return axios({
    url: '/houseLease/getLeaseFurnitureListById/' + parameter,
    method: 'get'
  })
}
